/*jslint browser: true, devel: true, bitwise: true, white: true, plusplus: true */
/*global $:true, define:true */

/**
 * @module Core
 */

define(function() {
"use strict";

if (!Object.prototype.toSource) {
	Object.defineProperty(Object.prototype, 'toSource', {
		enumerable: false,
		configurable: false,
		writable: false,
		value: function () {
			return JSON.stringify(this);
		}
  });
}

if (!String.prototype.startsWith) {
	Object.defineProperty(String.prototype, 'startsWith', {
		enumerable: false,
		configurable: false,
		writable: false,
		value: function (searchString, position) {
			position = position || 0;
			return this.indexOf(searchString, position) === position;
		}
  });
}

return undefined;
});
